<?php
$this->_toolbar = array(
		'title'		=>	Yii::t('app', 'Mail Setting'),
);
?>
<style>
.setting input{
	width: 200px;
	border: 1px solid #333;
	padding: 5px;
}
</style>
<div class="setting">
<form action="" method="post">
<?php if(Yii::app()->user->hasFlash('msg')):?>
<div class="success">
<?php echo Yii::app()->user->getFlash('msg');?>
</div>
<?php endif;?>
<h3>Cấu hình gửi mail SMTP</h3>
<table>
<tr>
	<td>Host</td>
	<td><input type="text" name="Setting[host]" value="<?php if($data['host']) echo $data['host']; ?>" /></td>
</tr>
<tr>
	<td>Port</td>
	<td><input type="text" name="Setting[port]" value="<?php if($data['port']) echo $data['port']; ?>" /></td>
</tr>
<tr>
	<td>Secure</td>
	<td><input type="text" name="Setting[secure]" value="<?php if($data['secure']) echo $data['secure']; ?>" /></td>
</tr>
<tr>
	<td>Account</td>
	<td><input type="text" name="Setting[account]" value="<?php if($data['account']) echo $data['account']; ?>" /></td>
</tr>
<tr>
	<td>Password</td>
	<td><input type="password" name="Setting[password]" value="<?php if($data['password']) echo $data['password']; ?>" /></td>
</tr>
<tr>
	<td>Mail From Name</td>
	<td><input type="text" name="Setting[mailfrom]" value="<?php if($data['mailfrom']) echo $data['mailfrom']; ?>" /></td>
</tr>
<tr>
	<td>Mail Repply</td>
	<td><input type="text" name="Setting[mailreply]" value="<?php if($data['mailreply']) echo $data['mailreply']; ?>" /></td>
</tr>
</table>
<button name="FSetting">Save</button>
</form>
</div>